<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>企业用户列表</title>
<link rel="shortcut icon" href="${res}favicon.ico" type="image/x-icon" />
 <!--Basic Styles-->
<link href="../framework/css/font.css" rel="stylesheet" />
<link href="../framework/miniui/themes/material/miniui.css" rel="stylesheet" />
<link href="../framework/css/app.min.1.css" rel="stylesheet" type="text/css" />
<link href="../framework/css/app.min.2.css" rel="stylesheet" type="text/css" />
<script src="../framework/main.js" type="text/javascript"></script>
<style type="text/css">html, body{margin:0;padding:0;border:0;width:100%;height:100%;overflow:hidden;}</style>
<script>
Page.onLoad(function(){
	
});

var newQueryString = null;
function onTreeClickBranch(e){
	var id = e.node.ID;
	var code = e.node.BranchInnerCode;
	newQueryString = "ID="+id+"&BranchInnerCode="+code;
	mini.get('mainTabs').tryReload(newQueryString);
}

 function onBranchTreeLoad(e){
	if(e.sender.getRootNode().children.length > 0){
		e.sender.selectNode(e.sender.getRootNode().children[0]);
	}
}

</script>
</head>
<body class="body-list" style="background:#F9F9F9;">
<div id="layout1" class="mini-layout" style="width:100%;height:100%;">
 	<div region="west" width="220" showheader="false" allowResize="false">
 		<div style="height:100%">
 			<div class="mini-toolbar">
	            <a class="mini-button" iconCls="icon-branch"  plain="true" onClick="top.location.hash='';">修改组织机构</a> 
			</div>
			<div class="mini-fit" style="padding-top:3px;">
				<ul id="branchTree" class="mini-tree" expandOnLoad="1" onload="onBranchTreeLoad" onnodeclick="onTreeClickBranch" style="width:100%;" textField="Name" idField="BranchInnerCode" parentField="ParentInnerCode" resultAsTree="false" showTreeIcon="true" method="MemberBranch.dgaDataBind" ></ul>
			</div>
 		</div>
    </div>
     <div title="center" region="center" >
		<div id="mainTabs" class="mini-tabs" style="width:100%;height:100%;" plain="false" onbeforeactivechanged="onTabsActiveChanged">
             <div title="基本信息" url="branchInfo.jhtml" iconCls="icon-job-title"></div>
         </div>
    </div>
</div>
</body>
</html>